﻿#ifndef AXISPLOTDATAWIDGET_H
#define AXISPLOTDATAWIDGET_H

#include <QObject>
#include <QTabWidget>
#include <QDebug>
#include "common/qcustomplot.h"
#include "capcontrol/capcontroldefine.h"

class QPlotDataWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QPlotDataWidget(int i32AixNo,QString sAxisName,QWidget *parent = nullptr);
    ~QPlotDataWidget();


signals:

public slots:
    void onRcvData(QVariant var);

    void onSelectDataBtnClick(bool bchecked);

    void setButtonStyleSheet(QPushButton* pBtn);


private:
    void InitUI();

    QCustomPlot* _pCustomPlot;

    st_rcvdata _rcv_capdata;

    QList<int> _selectdatalist;

    QColor m_color[22];

    QVector<double> _xdatalist[22];
    QVector<double> _ydatalist[22];

    int _i32CurrentX;//x轴数据 统一计算
    int _i32AxisNo;//轴编号
    QString _sAxisName;





};

#endif // PLOTDATAWIDGET_H
